package com.triadsystems.cashweb.controle.mbean.impl;

import java.util.ArrayList;

import javax.annotation.PostConstruct;
import javax.inject.Inject;
import javax.inject.Named;

import org.springframework.context.annotation.Scope;

import com.icon.infra.controle.utils.GenericoCRUDBean;
import com.triadsystems.cashweb.modelo.negocio.servicos.IEmpresaServico;
import com.triadsystems.cashweb.modelo.persistencia.entidades.Empresa;

@Named
@Scope("session")
public class EmpresaBean extends GenericoCRUDBean<Empresa, Empresa> {
	@Inject
	private IEmpresaServico empresaServico;

	@PostConstruct
	@Override
	protected void inicializarAtributosManagedBean() throws Exception {
		setLista(new ArrayList<Empresa>());
		setObjetoPrincipalServico(empresaServico);

	}

}